.class public Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;
.super Lcom/facebook/orca/roboguice/RoboFragment;
.source "ThreadViewMessageFragmentTab.java"


# instance fields
.field private J:Lcom/facebook/orca/threadview/MessageListAdapter;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private K:Landroid/view/inputmethod/InputMethodManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private L:Lcom/facebook/orca/cache/SendMessageManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private M:Landroid/text/ClipboardManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private N:Landroid/os/Handler;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private O:Landroid/support/v4/app/FragmentManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private P:Landroid/widget/LinearLayout;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080103
    .end annotation
.end field

.field private Q:Landroid/view/View;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080104
    .end annotation
.end field

.field private R:Landroid/widget/ListView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080106
    .end annotation
.end field

.field private S:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080107
    .end annotation
.end field

.field private T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080105
    .end annotation
.end field

.field private U:Landroid/widget/FrameLayout;
    .annotation runtime Lcom/facebook/orca/annotations/InjectFragmentView;
        a = 0x7f080108
    .end annotation
.end field

.field private V:Lcom/facebook/orca/compose/ComposeView;

.field private W:Landroid/view/View;

.field private X:Lcom/facebook/orca/threadview/ThreadViewActivity;

.field private Y:Ljava/lang/String;

.field private Z:Lcom/facebook/orca/compose/ComposeMode;

.field private aa:Z

.field private ab:Z

.field private ac:Lcom/facebook/orca/cache/PendingSendMessage;

.field private ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

.field private ae:Z

.field private af:Landroid/graphics/drawable/Drawable;

.field private ag:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/roboguice/RoboFragment;-><init>()V

    .line 76
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    .line 78
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ab:Z

    .line 453
    return-void
.end method

.method private A()V
    .locals 2

    .prologue
    .line 432
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    if-eqz v0, :cond_0

    .line 433
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    invoke-virtual {v1}, Lcom/facebook/orca/cache/PendingSendMessage;->c()Lcom/facebook/orca/server/OutgoingMessage;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/server/OutgoingMessage;)V

    .line 434
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-static {}, Lcom/google/common/collect/ImmutableList;->g()Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->b(Ljava/util/List;)V

    .line 435
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 436
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    .line 438
    :cond_0
    return-void
.end method

.method private B()V
    .locals 2

    .prologue
    .line 445
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    if-eqz v0, :cond_0

    .line 446
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->e()V

    .line 447
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-static {}, Lcom/google/common/collect/ImmutableList;->g()Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->b(Ljava/util/List;)V

    .line 448
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 449
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    .line 451
    :cond_0
    return-void
.end method

.method private C()Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;
    .locals 5

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 460
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->a()Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;->LOADING:Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    if-ne v0, v1, :cond_3

    .line 461
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v0

    move v1, v0

    .line 463
    :goto_0
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->getCount()I

    move-result v2

    if-ge v1, v2, :cond_0

    .line 464
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v2, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v2

    .line 465
    instance-of v2, v2, Lcom/facebook/orca/threads/Message;

    if-eqz v2, :cond_1

    .line 471
    :cond_0
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->getCount()I

    move-result v2

    if-lt v1, v2, :cond_2

    move-object v0, v3

    .line 487
    :goto_1
    return-object v0

    .line 468
    :cond_1
    add-int/lit8 v1, v1, 0x1

    .line 469
    goto :goto_0

    .line 475
    :cond_2
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    sub-int v0, v1, v0

    invoke-virtual {v2, v0}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 476
    new-instance v2, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;

    invoke-direct {v2, v3}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$1;)V

    .line 477
    iget-object v3, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v3, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItemId(I)J

    move-result-wide v3

    invoke-static {v2, v3, v4}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;J)J

    .line 478
    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-static {v2, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;I)I

    move-object v0, v2

    .line 479
    goto :goto_1

    .line 481
    :cond_3
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getLastVisiblePosition()I

    move-result v0

    .line 482
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getCount()I

    move-result v1

    sub-int/2addr v1, v2

    if-ne v0, v1, :cond_4

    .line 483
    new-instance v0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;

    invoke-direct {v0, v3}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$1;)V

    .line 484
    invoke-static {v0, v2}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;Z)Z

    goto :goto_1

    :cond_4
    move-object v0, v3

    .line 487
    goto :goto_1
.end method

.method private D()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 510
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getCount()I

    move-result v0

    .line 511
    if-lez v0, :cond_0

    .line 512
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getLastVisiblePosition()I

    move-result v1

    .line 513
    sub-int v2, v0, v3

    if-ge v1, v2, :cond_0

    .line 514
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    sub-int/2addr v0, v3

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->smoothScrollToPosition(I)V

    .line 517
    :cond_0
    return-void
.end method

.method private a(III)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 385
    if-nez p1, :cond_0

    if-lez p2, :cond_0

    if-lez p3, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/threadview/MessageListAdapter;->a:Ljava/lang/Object;

    if-ne v0, v1, :cond_0

    .line 387
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ab:Z

    if-nez v0, :cond_0

    .line 388
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Z)V

    .line 391
    :cond_0
    return-void
.end method

.method private a(Landroid/view/View;Landroid/view/View;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 219
    const/4 v0, 0x0

    .line 220
    if-eqz p2, :cond_2

    invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    .line 221
    :goto_0
    if-eqz v1, :cond_0

    .line 222
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    if-ne v1, v2, :cond_3

    .line 223
    const/4 v0, 0x1

    .line 229
    :cond_0
    if-eqz v0, :cond_1

    .line 230
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->c()V

    .line 232
    :cond_1
    return-void

    .line 220
    :cond_2
    const/4 v1, 0x0

    goto :goto_0

    .line 226
    :cond_3
    invoke-interface {v1}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    goto :goto_0
.end method

.method private a(Lcom/facebook/orca/compose/ComposeMode;)V
    .locals 1
    .parameter

    .prologue
    .line 273
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 274
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 275
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->P:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->requestLayout()V

    .line 276
    return-void
.end method

.method private a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;)V
    .locals 5
    .parameter

    .prologue
    .line 492
    if-nez p1, :cond_1

    .line 507
    :cond_0
    :goto_0
    return-void

    .line 495
    :cond_1
    invoke-static {p1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 496
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->D()V

    goto :goto_0

    .line 498
    :cond_2
    const/4 v0, 0x0

    :goto_1
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getCount()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 499
    invoke-static {p1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->b(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;)J

    move-result-wide v1

    iget-object v3, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v3, v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItemId(I)J

    move-result-wide v3

    cmp-long v1, v1, v3

    if-nez v1, :cond_3

    .line 500
    if-lez v0, :cond_0

    .line 501
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-static {p1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;->c(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;)I

    move-result v2

    invoke-virtual {v1, v0, v2}, Landroid/widget/ListView;->setSelectionFromTop(II)V

    goto :goto_0

    .line 498
    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->x()V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 38
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->c(I)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;III)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 38
    invoke-direct {p0, p1, p2, p3}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(III)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;Landroid/view/View;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 38
    invoke-direct {p0, p1, p2}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Landroid/view/View;Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 38
    iput-boolean p1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ae:Z

    return p1
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->y()V

    return-void
.end method

.method private c(I)V
    .locals 4
    .parameter

    .prologue
    .line 334
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->g()Lcom/facebook/orca/compose/ComposeMode;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/compose/ComposeMode;->EXPANDED:Lcom/facebook/orca/compose/ComposeMode;

    if-ne v0, v1, :cond_1

    .line 335
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->d()V

    .line 351
    :cond_0
    :goto_0
    return-void

    .line 338
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    .line 339
    instance-of v1, v0, Lcom/facebook/orca/threads/Message;

    if-eqz v1, :cond_2

    .line 340
    check-cast v0, Lcom/facebook/orca/threads/Message;

    .line 341
    invoke-virtual {v0}, Lcom/facebook/orca/threads/Message;->k()Z

    move-result v1

    if-nez v1, :cond_0

    .line 342
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    const-class v3, Lcom/facebook/orca/messageview/MessageViewActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 343
    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 344
    const-string v2, "thread_id"

    iget-object v3, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Y:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 345
    const-string v2, "message"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 346
    invoke-virtual {p0, v1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Landroid/content/Intent;)V

    goto :goto_0

    .line 348
    :cond_2
    sget-object v1, Lcom/facebook/orca/threadview/MessageListAdapter;->a:Ljava/lang/Object;

    if-ne v0, v1, :cond_0

    .line 349
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Z)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->z()V

    return-void
.end method

.method static synthetic d(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->A()V

    return-void
.end method

.method private e(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 211
    const-string v0, "composeMode"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/compose/ComposeMode;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    .line 212
    const-string v0, "canReplyTo"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    .line 213
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    sget-object v1, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    if-eq v0, v1, :cond_0

    .line 214
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->c()V

    .line 216
    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->B()V

    return-void
.end method

.method private x()V
    .locals 2

    .prologue
    .line 394
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    if-eqz v0, :cond_0

    .line 415
    :goto_0
    return-void

    .line 399
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView;->c()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 400
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a(Landroid/content/Context;)Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;

    move-result-object v0

    const v1, 0x7f0a0081

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a(I)Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a()Landroid/app/AlertDialog;

    goto :goto_0

    .line 407
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView;->b()Lcom/facebook/orca/server/OutgoingMessage;

    move-result-object v0

    .line 408
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->L:Lcom/facebook/orca/cache/SendMessageManager;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/cache/SendMessageManager;->a(Lcom/facebook/orca/server/OutgoingMessage;)Lcom/facebook/orca/cache/PendingSendMessage;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    .line 409
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/PendingSendMessage;->a(Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;)V

    .line 410
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    invoke-static {v1}, Lcom/google/common/collect/ImmutableList;->b(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->b(Ljava/util/List;)V

    .line 411
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->D()V

    .line 412
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 413
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView;->d()V

    .line 414
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ae:Z

    goto :goto_0
.end method

.method private y()V
    .locals 4

    .prologue
    .line 418
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ae:Z

    .line 419
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->N:Landroid/os/Handler;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$6;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$6;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 426
    return-void
.end method

.method private z()V
    .locals 0

    .prologue
    .line 429
    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 96
    invoke-super {p0, p1, p2, p3}, Lcom/facebook/orca/roboguice/RoboFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;

    .line 97
    const v0, 0x7f030043

    invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;I)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public a()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 193
    invoke-super {p0}, Lcom/facebook/orca/roboguice/RoboFragment;->a()V

    .line 195
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    if-eqz v0, :cond_0

    .line 196
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/PendingSendMessage;->b(Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;)V

    .line 197
    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

    .line 198
    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    .line 200
    :cond_0
    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    .line 201
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x1

    .line 102
    invoke-super {p0, p1}, Lcom/facebook/orca/roboguice/RoboFragment;->a(Landroid/os/Bundle;)V

    .line 104
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->j()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewActivity;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    .line 106
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->O:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f0800f5

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/compose/ComposeView;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    .line 107
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView;->o()Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    .line 109
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->b()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Y:Ljava/lang/String;

    .line 111
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 112
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setStackFromBottom(Z)V

    .line 113
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setTranscriptMode(I)V

    .line 114
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setItemsCanFocus(Z)V

    .line 115
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$1;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$1;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 121
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$2;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$2;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 132
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->S:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 134
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Landroid/view/View;)V

    .line 135
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getSelector()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->af:Landroid/graphics/drawable/Drawable;

    .line 136
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->k()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f020092

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ag:Landroid/graphics/drawable/Drawable;

    .line 138
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->S:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->k()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a002a

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->setMessage(Ljava/lang/CharSequence;)V

    .line 139
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Y:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/MuteWarningView;->setThreadId(Ljava/lang/String;)V

    .line 140
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->U:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/MuteWarningView;->setAnimationContainer(Landroid/widget/FrameLayout;)V

    .line 142
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->X:Lcom/facebook/orca/threadview/ThreadViewActivity;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$3;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$3;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalFocusChangeListener(Landroid/view/ViewTreeObserver$OnGlobalFocusChangeListener;)V

    .line 150
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Y:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Ljava/lang/String;)V

    .line 151
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    sget-object v1, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 152
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$4;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$4;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/compose/ComposeView;->a(Lcom/facebook/orca/compose/ComposeView$OnSendClickedListener;)V

    .line 159
    new-instance v0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$5;

    invoke-direct {v0, p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$5;-><init>(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;)V

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

    .line 180
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->L:Lcom/facebook/orca/cache/SendMessageManager;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Y:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/SendMessageManager;->a(Ljava/lang/String;)Lcom/facebook/orca/cache/PendingSendMessage;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    .line 181
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    if-eqz v0, :cond_0

    .line 182
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ad:Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/PendingSendMessage;->a(Lcom/facebook/orca/cache/PendingSendMessage$OnSendUpdateListener;)V

    .line 183
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ac:Lcom/facebook/orca/cache/PendingSendMessage;

    invoke-static {v1}, Lcom/google/common/collect/ImmutableList;->b(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->b(Ljava/util/List;)V

    .line 185
    :cond_0
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ae:Z

    .line 186
    if-eqz p1, :cond_1

    .line 187
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->e(Landroid/os/Bundle;)V

    .line 189
    :cond_1
    return-void
.end method

.method a(Lcom/facebook/orca/threads/ThreadSummary;Lcom/facebook/orca/threads/MessagesCollection;J)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v1, 0x8

    .line 288
    invoke-virtual {p1}, Lcom/facebook/orca/threads/ThreadSummary;->u()Z

    move-result v0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    .line 289
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-ne v0, v1, :cond_2

    .line 290
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->d()V

    .line 295
    :cond_0
    :goto_0
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->C()Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;

    move-result-object v0

    .line 296
    invoke-virtual {p2}, Lcom/facebook/orca/threads/MessagesCollection;->b()Lcom/google/common/collect/ImmutableList;

    move-result-object v1

    .line 297
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {p2}, Lcom/facebook/orca/threads/MessagesCollection;->b()Lcom/google/common/collect/ImmutableList;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/facebook/orca/threadview/MessageListAdapter;->a(Ljava/util/List;)V

    .line 298
    invoke-virtual {v1}, Lcom/google/common/collect/ImmutableList;->size()I

    move-result v1

    if-lez v1, :cond_3

    invoke-virtual {p2}, Lcom/facebook/orca/threads/MessagesCollection;->d()Z

    move-result v1

    if-nez v1, :cond_3

    .line 299
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    sget-object v2, Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;->LOAD_MORE:Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    invoke-virtual {v1, v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->a(Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;)V

    .line 303
    :goto_1
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->S:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 304
    iget-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ae:Z

    if-eqz v1, :cond_1

    .line 305
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-static {}, Lcom/google/common/collect/ImmutableList;->g()Lcom/google/common/collect/ImmutableList;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->b(Ljava/util/List;)V

    .line 307
    :cond_1
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 308
    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab$SyncState;)V

    .line 310
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ab:Z

    .line 311
    return-void

    .line 291
    :cond_2
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-eq v0, v1, :cond_0

    .line 292
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->e()V

    goto :goto_0

    .line 301
    :cond_3
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    sget-object v2, Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;->NONE:Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    invoke-virtual {v1, v2}, Lcom/facebook/orca/threadview/MessageListAdapter;->a(Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;)V

    goto :goto_1
.end method

.method public a(Landroid/view/MenuItem;)Z
    .locals 2
    .parameter

    .prologue
    .line 370
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    if-nez v0, :cond_0

    .line 371
    invoke-interface {p1}, Landroid/view/MenuItem;->getMenuInfo()Landroid/view/ContextMenu$ContextMenuInfo;

    move-result-object v0

    check-cast v0, Landroid/widget/AdapterView$AdapterContextMenuInfo;

    .line 373
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    iget v0, v0, Landroid/widget/AdapterView$AdapterContextMenuInfo;->position:I

    invoke-virtual {v1, v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    .line 374
    instance-of v1, v0, Lcom/facebook/orca/threads/Message;

    if-eqz v1, :cond_0

    .line 375
    check-cast v0, Lcom/facebook/orca/threads/Message;

    .line 376
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->M:Landroid/text/ClipboardManager;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/Message;->e()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/text/ClipboardManager;->setText(Ljava/lang/CharSequence;)V

    .line 377
    const/4 v0, 0x1

    .line 381
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Lcom/facebook/orca/roboguice/RoboFragment;->a(Landroid/view/MenuItem;)Z

    move-result v0

    goto :goto_0
.end method

.method b()V
    .locals 2

    .prologue
    .line 235
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    sget-object v1, Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;->LOADING:Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->a(Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;)V

    .line 236
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 237
    return-void
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 205
    invoke-super {p0, p1}, Lcom/facebook/orca/roboguice/RoboFragment;->b(Landroid/os/Bundle;)V

    .line 206
    const-string v0, "composeMode"

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 207
    const-string v0, "canReplyTo"

    iget-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 208
    return-void
.end method

.method c()V
    .locals 2

    .prologue
    .line 240
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    if-nez v0, :cond_0

    .line 249
    :goto_0
    return-void

    .line 243
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 244
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->EXPANDED:Lcom/facebook/orca/compose/ComposeMode;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 245
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->EXPANDED:Lcom/facebook/orca/compose/ComposeMode;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    .line 246
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ag:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelector(Landroid/graphics/drawable/Drawable;)V

    .line 247
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/MuteWarningView;->setVisibility(I)V

    .line 248
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->D()V

    goto :goto_0
.end method

.method d()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 252
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->aa:Z

    if-nez v0, :cond_0

    .line 262
    :goto_0
    return-void

    .line 255
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 256
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 257
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Z:Lcom/facebook/orca/compose/ComposeMode;

    .line 258
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Q:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 259
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->K:Landroid/view/inputmethod/InputMethodManager;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Q:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 260
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->af:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelector(Landroid/graphics/drawable/Drawable;)V

    .line 261
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/common/ui/widgets/MuteWarningView;->setVisibility(I)V

    goto :goto_0
.end method

.method e()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 265
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->W:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 266
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 267
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Q:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 268
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->K:Landroid/view/inputmethod/InputMethodManager;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->Q:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 269
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->T:Lcom/facebook/orca/common/ui/widgets/MuteWarningView;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/common/ui/widgets/MuteWarningView;->setVisibility(I)V

    .line 270
    return-void
.end method

.method f()Lcom/facebook/orca/compose/ComposeView;
    .locals 1

    .prologue
    .line 279
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->V:Lcom/facebook/orca/compose/ComposeView;

    return-object v0
.end method

.method g()V
    .locals 2

    .prologue
    .line 328
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    sget-object v1, Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;->LOAD_MORE:Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->a(Lcom/facebook/orca/threadview/MessageListAdapter$LoadMoreState;)V

    .line 329
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/MessageListAdapter;->notifyDataSetChanged()V

    .line 330
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->ab:Z

    .line 331
    return-void
.end method

.method public onCreateContextMenu(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 357
    invoke-super {p0, p1, p2, p3}, Lcom/facebook/orca/roboguice/RoboFragment;->onCreateContextMenu(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V

    .line 358
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->R:Landroid/widget/ListView;

    if-ne p2, v0, :cond_0

    .line 359
    check-cast p3, Landroid/widget/AdapterView$AdapterContextMenuInfo;

    .line 360
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->J:Lcom/facebook/orca/threadview/MessageListAdapter;

    iget v1, p3, Landroid/widget/AdapterView$AdapterContextMenuInfo;->position:I

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/MessageListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    .line 361
    instance-of v0, v0, Lcom/facebook/orca/threads/Message;

    if-eqz v0, :cond_0

    .line 362
    const-string v0, "Message"

    invoke-interface {p1, v0}, Landroid/view/ContextMenu;->setHeaderTitle(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;

    .line 363
    const-string v0, "Copy"

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/ContextMenu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 366
    :cond_0
    return-void
.end method
